package com.example.zhunongzonghe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.zhunongzonghe.common.Result;
import com.example.zhunongzonghe.entity.ZnUsers;

import java.util.Map;


public interface IZnUsersService extends IService<ZnUsers> {

//    public ZnUsers findByUserName(String name);
//    List<ZnUsers> findByUserNickName(Object nickname);

    /**
     * 根据用户名获取用户信息
     * @param userName
     * @return
     */
    ZnUsers getUserName(String userName);

    /**
     * 登录接口
     *
     * @param znUsers
     * @return
     */
    Map<String, Object> login(ZnUsers znUsers);

    /**
     * 退出登录
     * @return
     */
    Result logout();


}
